Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter connections list on source or destination item pages #21027

Conversation

krishnaglick
Copy link
Contributor

Resolves #21025

What

Adds filtering to the source and destination item pages, as well as cleans up some excess API calls.

How

The source or destination ID is now passed into the connections list call on the source and destination item pages.

@krishnaglick krishnaglick requested a review from a team as a code owner January 4, 2023 17:10
@octavia-squidington-iv octavia-squidington-iv added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Jan 4, 2023
@octavia-squidington-iv octavia-squidington-iv removed the area/platform issues related to the platform label Jan 9, 2023
@krishnaglick krishnaglick self-assigned this Jan 9, 2023
@krishnaglick krishnaglick enabled auto-merge (squash) January 18, 2023 18:40
Copy link
Contributor

@teallarson teallarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Had one suggested about comments but not blocking.

);

const sourceDropdownOptions: DropdownMenuOptionType[] = useMemo(
// We load all sources so the add source button has a pre-filled list of options.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// We load all sources so the add source button has a pre-filled list of options.
// We load all configured sources so the add source button has a pre-filled list of options.

@@ -52,23 +47,20 @@ const SourceItemPage: React.FC = () => {
{ label: source.name },
];

const connectionsWithSource = connections.filter(({ source: { sourceId } }) => sourceId === source.sourceId);

// We load all destinations so the add destination button has a pre-filled list of options.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// We load all destinations so the add destination button has a pre-filled list of options.
// We load all configured destinations so the add destination button has a pre-filled list of options.

@krishnaglick krishnaglick merged commit 434d8a1 into master Jan 18, 2023
@krishnaglick krishnaglick deleted the kc/filter-connections-on-source-and-destination-list-item-pages branch January 18, 2023 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Utilize connection list filtering on source and destination item pages
3 participants